package com.ruoyi.Outsider.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 外来人口访问登记对象 faceimg
 * 
 * @author 张柏焰
 * @date 2024-07-07
 */
public class Outsider extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id,自动递增 */
    private Long id;

    /** 用户信息表id */
    private Long pId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别(0男 1女 2未知) */
    @Excel(name = "性别(0男 1女 2未知)")
    private Long gender;

    /** 用户图片base64文件地址 */
    private String faceImg;

    /** 人员类型(默认永久用户:0 访客:1) */
    private Long personType;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 证件类型(身份证:0 护照:1) */
    @Excel(name = "证件类型(身份证:0 护照:1)")
    private Long documentType;

    /** 证件号 */
    @Excel(name = "证件号")
    private String number;

    /** 车牌号 */
    private String licence;

    /** 单位 */
    private String unit;

    /** 访问事由 */
    @Excel(name = "访问事由")
    private String reason;

    /** 准许进出(默认准许:0 不准许:1) */
    @Excel(name = "准许进出(默认准许:0 不准许:1)")
    private Long permit;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGender(Long gender) 
    {
        this.gender = gender;
    }

    public Long getGender() 
    {
        return gender;
    }
    public void setFaceImg(String faceImg) 
    {
        this.faceImg = faceImg;
    }

    public String getFaceImg() 
    {
        return faceImg;
    }
    public void setPersonType(Long personType) 
    {
        this.personType = personType;
    }

    public Long getPersonType() 
    {
        return personType;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setDocumentType(Long documentType) 
    {
        this.documentType = documentType;
    }

    public Long getDocumentType() 
    {
        return documentType;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setLicence(String licence) 
    {
        this.licence = licence;
    }

    public String getLicence() 
    {
        return licence;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setPermit(Long permit) 
    {
        this.permit = permit;
    }

    public Long getPermit() 
    {
        return permit;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pId", getpId())
            .append("name", getName())
            .append("gender", getGender())
            .append("faceImg", getFaceImg())
            .append("personType", getPersonType())
            .append("phone", getPhone())
            .append("documentType", getDocumentType())
            .append("number", getNumber())
            .append("licence", getLicence())
            .append("unit", getUnit())
            .append("reason", getReason())
            .append("permit", getPermit())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
